/*
 * @Author: leo
 * @Date: 2024-10-21 16:01:50
 * @LastEditors: leo
 * @Description: 
 */
import * as  project1 from './components/project1';
import * as  project2 from './components/project2';
import * as  project3 from './components/project3';
export default {
  install(app,options = { project: [] }) {
    /* 这里针对三个项目分别进行组件注册 */
    options.project.forEach((project) => {
      if (project.includes('project1')) {
        for (const [name, component] of Object.entries(project1)) {
          app.component(name, component); // 注册 project1 的组件
        }
      }if (project.includes('project2')) {
          for (const [name, component] of Object.entries(project2)) {
          app.component(name, component); // 注册 project2 的组件
        }
      }if (project.includes('project3')) {
        for (const [name, component] of Object.entries(project3)) {
        app.component(name, component); // 注册 project3 的组件
      }
    }
    });
  },
};
/* 项目描述文字 */
export const descList = {
  project1:'项目1',
  project2:'项目2',
  project3:'项目3',
}
// 导出项目1、项目2、项目3的组件
export { project1,project2,project3 };
